package com.ruoyix.weblog.domain.bo;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;

import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 视频管理业务对象 blog_videos
 *
 * @author ruoyi
 * @date 2024-09-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BlogVideosBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 视频集ID
     */
    @NotNull(message = "视频集ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long catalogId;

    /**
     * 视频标题
     */
    @NotBlank(message = "视频标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String videoTitle;

    /**
     * md5值
     */
    private String md5;

    /**
     * 视频描述
     */
    @NotBlank(message = "视频描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 视频的URL或文件路径
     */
    private String url;

    /**
     * 用户ID
     */
    private Long userId;
    /**

    /**
     * 视频时长
     */
    @NotBlank(message = "视频时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private String duration;

    /**
     * 视频缩略图URL
     */
    @NotBlank(message = "视频缩略图URL不能为空", groups = { AddGroup.class, EditGroup.class })
    private String thumbnailUrl;

    /**
     * 视频转换状态
     */
    private Long status;

    /**
     * 视频类型
     */
    @NotNull(message = "视频类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long videoType;

    /**
     * 播放类型
     */
    @NotBlank(message = "播放类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String playType;

    /**
     * 点赞数
     */
    private Long likeCount;

    /**
     * 浏览数
     */
    private Long viewCount;

    private String delFlag;

    /**
     * 备注
     */
    private String remark;



}
